//
//  Game.m
//  AOEProject
//
//  Created by techplus on 9/21/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "Game.h"

@implementation Game
@synthesize atrName;
@synthesize gUrl;
@synthesize catalogueLable;
@synthesize dateLable;

@synthesize TAG_CATALOG_INDEX;
@synthesize TAG_CATALOG_ELEMENT_INDEX;
@synthesize TAG_MATCH_INDEX;
@synthesize TAG_GAME_INDEX;

-(id)initWithCatalogIndex:(NSInteger *)cIndex :(NSInteger *)ceIndex :(NSInteger *)mIndex :(NSInteger *)gIndex{
    self = [super init];
    if(self)
    {
        self.TAG_CATALOG_INDEX = cIndex;
        self.TAG_CATALOG_ELEMENT_INDEX = ceIndex;
        self.TAG_MATCH_INDEX = mIndex;
        self.TAG_GAME_INDEX = gIndex;
        //[self getAtrs];
    }
    return self;
}

-(void)getAtrs{
    //SAMPLEDATA
    atrName = [[NSString alloc]initWithFormat:@"C%d CE%d M%d G%d",TAG_CATALOG_INDEX,TAG_CATALOG_ELEMENT_INDEX,TAG_MATCH_INDEX,TAG_GAME_INDEX];
    gUrl = [[NSString alloc]initWithString:@"Dh7_x3zckzU"];
}

-(void)getMatchParent{
    
}

-(void)dealloc{
    [atrName release];
    [gUrl release];
    [super dealloc];
}

@end
